﻿/*****************************************************************************
 * Hyldahl.Services.TaskProcessing.Test            Created by: MSH 2008.07.22
 * --------------------------------------------------------------------------
 * FileName: TaskProcessingContextTest.cs
 * --------------------------------------------------------------------------
 * Copyright 2009 Martin Sixhøj Hyldahl
 *****************************************************************************/

using NUnit.Framework;

namespace Hyldahl.Services.TaskProcessing.Test
{
    
    
    /// <summary>
    ///This is a test class for TaskProcessingContextTest and is intended
    ///to contain all TaskProcessingContextTest Unit Tests
    ///</summary>
    [TestFixture()]
    public class TaskProcessingContextTest
    {
        /// <summary>
        ///A test for TaskProcessorPlugins
        ///</summary>
        [Test()]
        public void TaskProcessorPluginsTest()
        {
            Assert.IsNotNull(TaskProcessingApplicationContext.Current.TaskProcessorPlugins);

            Assert.AreSame(TaskProcessingApplicationContext.Current.TaskProcessorPlugins, TaskProcessingApplicationContext.Current.TaskProcessorPlugins);
        }

        /// <summary>
        ///A test for DataStore
        ///</summary>
        [Test()]
        public void DataStoreTest()
        {
            Assert.IsNotNull(TaskProcessingApplicationContext.Current.DataStore);

            Assert.AreSame(TaskProcessingApplicationContext.Current.DataStore, TaskProcessingApplicationContext.Current.DataStore);
        }

        /// <summary>
        ///A test for Current
        ///</summary>
        [Test()]
        public void CurrentTest()
        {
            Assert.IsNotNull(TaskProcessingApplicationContext.Current);

            Assert.AreSame(TaskProcessingApplicationContext.Current, TaskProcessingApplicationContext.Current);
        }
    }
}
